package com.blb.community_admin.entity;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author hkp
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_post")
public class SysPost {

    @ExcelProperty("岗位编号")
    @TableId(type = IdType.AUTO)
    private long postId;
    @ExcelProperty("岗位编码")
    private String postCode;
    @ExcelProperty("岗位名称")
    private String postName;
    @ExcelProperty("岗位顺序")
    private long postSort;
    @ExcelProperty("状态")
    private String status;
    @ExcelProperty("创建者")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
    @ExcelIgnore
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private LocalDateTime updateTime;
    @ExcelProperty("评论")
    private String remark;

}
